package cn.alm.serviceorder.controller;

import cn.alm.serviceorder.service.OrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/order/test")
public class TestController {

    @Resource
    private OrderService orderService;

    @GetMapping("hello")
//    @SentinelResource
    public String hello() {
        System.out.println("进入了order/test/hello方法");
        return "hello, this is order service";
    }

    @GetMapping("hello2")
    public String hello2() {
        return orderService.hello2();
    }

    @GetMapping("hello3")
    public String hello3() {
        return orderService.hello2();
    }

}
